package com.mango.game.dtos;

/**
 * 封装登录信息
 */
public class LoginUserDTO {

    /**
     * 用户ID
     */
    public Long userId = 0L;

    /**
     * 所属命名空间ID
     */
    private Long nameSpace = 0L;

    /**
     * 所属游戏ID
     */
    private Long gameId = 0L;

    /**
     * 所属渠道ID
     */
    private Long channelId = 0L;

    /**
     * 所属产品ID
     */
    private Long productsId = 0L;

    /**
     * 登录用户名（不同命名空间下可以重复）
     */
    private String username = "";

    /**
     * 用户昵称
     */
    private String nickName = "";

    /**
     * 是否管理员
     */
    private Boolean isAdmin = false;

    public LoginUserDTO() {
    }

    public LoginUserDTO(Long userId, Long nameSpace, Long gameId, Long channelId, Long productsId, String username, String nickName) {
        this.userId = userId;
        this.nameSpace = nameSpace;
        this.gameId = gameId;
        this.channelId = channelId;
        this.productsId = productsId;
        this.username = username;
        this.nickName = nickName;
    }

    public LoginUserDTO(Long userId, Long nameSpace, Long gameId, Long channelId, Long productsId, String username, String nickName, Boolean isAdmin) {
        this.userId = userId;
        this.nameSpace = nameSpace;
        this.gameId = gameId;
        this.channelId = channelId;
        this.productsId = productsId;
        this.username = username;
        this.nickName = nickName;
        this.isAdmin = isAdmin;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getNameSpace() {
        return nameSpace;
    }

    public void setNameSpace(Long nameSpace) {
        this.nameSpace = nameSpace;
    }

    public Long getGameId() {
        return gameId;
    }

    public void setGameId(Long gameId) {
        this.gameId = gameId;
    }

    public Long getChannelId() {
        return channelId;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    public Long getProductsId() {
        return productsId;
    }

    public void setProductsId(Long productsId) {
        this.productsId = productsId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Boolean getAdmin() {
        return isAdmin;
    }

    public void setAdmin(Boolean admin) {
        isAdmin = admin;
    }

    @Override
    public String toString() {
        return "LoginUserDTO{" +
                "userId=" + userId +
                ", nameSpace=" + nameSpace +
                ", gameId=" + gameId +
                ", channelId=" + channelId +
                ", productsId=" + productsId +
                ", username='" + username + '\'' +
                ", nickName='" + nickName + '\'' +
                ", isAdmin=" + isAdmin +
                '}';
    }
}
